package javase1.day08.demo04;
/*
java.util.Math工具类提供大量与数学相关的静态方法
public static double abs(double num){}取绝对值
public static double ceil(double num){}向上取整
public static double floor(double num){}向下取整
public static long round(double num){}四舍五入
Meth.PI近似圆周率

 */
public class Demo03Math {
    public static void main(String[] args) {
        double a= 10.2;
        double b= 10.9;
        double c= -2;
        System.out.println(Math.abs(c));
        System.out.println(Math.ceil(a));
        System.out.println(Math.floor(b));
        System.out.println(Math.round(a));
    }
}
